﻿using System;

class Fibonacci
{
    static void Main()
    {
        //Exercise 9.
        //Write a program to print the first 100 members of the sequence of Fibonacci: 
        //0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, …

        int f1 = 0;
        int f2 = 1;
        Console.WriteLine(f1);
        Console.WriteLine(f2);

        for (int i = 0; i < 100; i++)
        {
            int result = f2 + f1;   
            Console.WriteLine(result);
            f1 = f2;
            f2 = result;
        }
        Console.WriteLine();
    }
}

